SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
SET(SCRIPT_PATH ${PROJECT_SOURCE_DIR}/scripts)
AUX_SOURCE_DIRECTORY(. SRC_LIST)

add_compile_options(-g)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_library(svuv SHARED svuv.cpp tcpclient.cpp tcpserver.cpp)
TARGET_LINK_LIBRARIES(svuv pthread uv)

SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_library(md5 SHARED md5.c)

SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_library(crc16 SHARED crc16.c)

SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_library(sv_cksum SHARED sv_cksum.c)

SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_library(svfifo SHARED svfifo.cpp)

SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_library(svcp SHARED svcp.cpp)

SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_library(svdebug SHARED svdebug.cpp)